from django.conf.urls import url,include
from testbook import views

urlpatterns = [
    url(r'^index', views.index, name='index'),
    url(r'^test', views.index2),
    url(r'^temp_var',views.temp_var),
    url(r'^temp_filter',views.temp_filter),
    url(r'^temp_inherit', views.temp_inherit),
    url(r'^html_escape', views.html_escape),

    url(r'^login$', views.login),  # 显示登录页面
    url(r'^login_check$', views.login_check),
    url(r'^change_pwd$', views.change_pwd),
    url(r'^change_pwd_action$', views.change_pwd_action), #修改密码处理

    url(r'^verify_code$', views.verify_code),  # 验证码

    url(r'^url_reverse$', views.url_reverse),  #
    url(r'^show_args/(\d+)/(\d+)$', views.show_args, name='show_args'),  # 捕获位置参数
    url(r'^show_kwargs/(?P<c>\d+)/(?P<d>\d+)$', views.show_kwargs, name='show_kwargs'),  # 捕获关键字参数
    url(r'^test_reverse$', views.test_reverse, name='test_reverse'),  # 视图使用反向解析
]
